<?php
	header("Content-type: application/xml");
	echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
  <channel>
  	<title>Smokinn's Blog Feed Comments</title>
  	<link>http://<?php echo $_SERVER['SERVER_NAME']; ?>/blog/post/<?php echo $this->post->getId(); ?></link>
  	<description>Lastest comments</description>
  	<pubDate><?php echo date('r'); ?></pubDate>
	<?php
		foreach($this->comments as $comment)
		{
			echo "<item>\n" . $comment->asRSS() . "</item>\n";
		}
	?>
</channel>
</rss>
